import fileUpload from '@/utils/file-upload'
import fileDownload from '@/utils/file-download'
import request from '@/utils/request'
import store from '@/store'
import { prefixUrl } from "@/utils/api-adaptive"

export default {

	
	// 本地文件上传，返回文件id
	fileUploadReturnId(param) {
		return fileUpload({
			url: '/dev/file/uploadLocalReturnId',
			file: param.file,
			filePath: param.filePath
		})
	},
	
	// 下载文件，这里要带上blob类型
	fileDownload(id) {
		return fileDownload({
			url: '/dev/file/download?id=' + id,
		})
	},
	
}